{# Everything on file, newest first, narrowed by search, kind and tag. A row opens its document in the drawer; the address holds which. #} {% from "components/macros/layout.html" import card, drawer_sync %} {% from "components/macros/table.html" import data_table %} {% from "components/macros/form.html" import search_input, select %}
{{ search_input("q", q, placeholder="Search titles") }} {{ select("kind", kind_options, kind, blank="All kinds", label="Kind") }} {% if tag %}tag: {{ tag }}{% endif %}
{% call card(None, id="documents-list") %} {{ data_table([ {"key": "title", "label": "Title", "kind": "link", "target": "#overseer-main"}, {"key": "kind", "label": "Kind"}, {"key": "dated", "label": "Dated"}, {"key": "pages", "label": "Pages", "kind": "int", "align": "right"}, {"key": "size", "label": "Size", "align": "right"}, {"key": "tags", "label": "Tags"}, ], rows, empty="Nothing on file here") }} {% endcall %} {{ drawer_sync(open_drawer, drawer_param) }}